[Bug 4200] New: map_image() can cause segfault