Added functionaliry for downscaling texture