JPEG: use jpeg_memory_src