Change dx, xw parameters into scale to match usage in image.scale, which is what the all really mean.
(#364)