R paintblob tile index to draw