Switching the image file format to jpg