Fix tile lookup, make imageDataToBitmap work