Jpeg decoder issue