Fixing scaleResize (fixes #22)