attempt to set image mimetype to jpg instead of png