adding scaling with panning