avg,lightness,luminosity methods added