TMemoryImageAllocator::ForAnyElementType::WriteMemoryImage