fixing modulo innacurracy for colors with value of 255