add some structures: prepare for using mmap so we can read/write images