Removed more hard-typed references to graphic to be panned