Make ROI abstract to allow different shapes of area of interest.
closes #34.