Somewhat better?
Paint function save