source = imread('source.jpg');
target = imread('target.jpg');

imshow(source);
mask = imfreehand();
bMask = mask.createMask();
