fix images to jpeg