Handle JPEG images without PIL