move drawing to separate module