limit color values to 255, just in case. and added the mit license