Making painter calls take a rect bounds and adding input modifiers.
This enables click-to-select frames and marks.
Fixing mark drawing.