[paint-bounded] Add new code to compute boundedness of paintings This is faster than using paint-extents to just compute boundedness. Unused right now.