added color at pixel function