ADDED a simple downscaling function for surfaces.