iOS6 fix only works with JPEG images.