Use Array instead of Lists for getting the pixels.