This is very cool, and I have a suggestion for an enhancement: you're hosting the sliced up images yourself, so you should be able to load them into a canvas element and analyze the colors. If the user switches to "solid color" or "custom html", you can set the background color to the most common color along the border of the region. You could even set the default text color to the brightest/darkest color within the region as well.