utility funtions for texture and colour

-getAverageColour
-getAverageTexture