Added functionality for downscaling texture