Changed blocks per pixel iterators

Changed the variables that iterate over blocks for each pixel to iterate over block coordinates, rather than 0 to blocksPerPixel and adding on chunk origin block coordinates.