Added scaling and transformation ability to gridcurves.