encapsulate drawing