fixed access to gray pixel