allow painting load without gui

same as diagrams