Update pixel area code to handle arbitrarily large rasters.