Modified the path-wise iterator to allow for the post-extraction of patches from images of higher dimensionality.
Added an exception to the pad(...) function when the paddding area becomes to large.