fix jpeg decoding for rpi