Fixes incorrect mime type for jpeg