Reduced imported symbols in write_debug_image