Image resampling and Contour Stencil

No gray scale image change.
The contour stencil to convert a contour to an image.
The contour image can be used to compute the box plots
Merge conflicts