am 3e7495b2: Merge "Fix crashes for images that are not PNG or JPEG" into klp-dev

* commit '3e7495b26058d1442c4ed4960818399728e6bc31':
  Fix crashes for images that are not PNG or JPEG