Don't allow invalid color+alpha combinations

If a color value is higher than the alpha value, it can cause problems, such
as image corruption when encoding with the image/png package.