Fix drawTiles() calls using a rect