Fix runtime errors, remove xy_resolution variable and update publishing