drawTiles optimization: allow the caller to specify the size of data within the array that should be rendered.