Now able to iterate through pixels properly