added scaling of textures