put images in a file