Add methods for getting the average color from textures