Implement imROF for image types
Add assert_timedim_last
Add erode() and dilate()