step 5 with feature gray, white, black Pixels, width, height and color value