R paintblob calc tile color