Convert uploaded images to jpg.