private Func<BitmapSource, Point> GetCropPointFunc(string cropPoint)
{
var parts = cropPoint.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
return bitmapSource => new Point(GetXValue(bitmapSource, parts[0]), GetYValue(bitmapSource, parts[1]));
}