printing - put painter on the stack