update how the image is written to mmap