updates for MemPtr (used by image library)