Extract images

Images are now placed in the output directory/media. It would be worth, at some point, changing the transforms to use ../media/ for image paths.