For the deployment of your images, i suggest that in your TPL you extract from your content all the media path, and store them in a filelist. Then in your workflow, you just have to add a task to deploy this filelist.