png: don't compute color constants every time