only implement jpeg_mem_src when required