fixed some more indexing errors
added some clarifying comments regarding image indexing (x,y)