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

* commit '7efa9bf53b67622b77bb949e849127f65357d75a':
  Fix crashes for images that are not PNG or JPEG