fixed input image array access values