Added support for texture scalling