Handling quality of 0 for jpeg decoding, should handle #17