Added console log to test pixel read value