Fix call to getImageData.
Fix variable name reference.
Make Tile class expect colors, not a palette.
Fix colors not being passed to tile.
Rename block tile identifier because to use 'index' is ambiguous.