Domain sub sampler

A new domain functor to apply image subsampling in nD. 
Added a new example in 2D/3D and doc update in image module.