DrawingLibrary state machine