Use an array to read out the image pixels