added optional scale to textures