LOOM-JPEGPLUSPLUS: add buffer read mode to jhead