fixes #96: ImageProcessing: Gradient worker does not respect axes

Axes discretization is now respected in the calculation of
the gradient magnitude.