downsampling of textures integrated
(Not tested, cause the §%$%& vagrant is in limbo again!)