bpmn2: fixed taking of screenshots