tbm_surface_internal: set up error handling when dump png