Result:-

The final result from composition of 2 different images.

First Image:-

Second Image:-

Used the sample solution to create a contour as below.Had some problems with the program I wrote. So used the Sample solution.

Mask:-

The final image is created according to the instructions given in the project.