changed image mimetype to jpeg