scaled and paned drawing now works as intended