Fix #3614873 - Thumbnails in icon view shown upside down for some jpegs.