change image format to jpeg