BLUR :-

edge detection :-

For edge detection, the shoulder part of Angelina Jolie wasn't that obvious. But what i did was gather all of the surrounding pixels, the focus pixel will be times by 4 and minus off the gathered pixels amount.
pencil sketch:-

By using and the sequence of blur,negative,merge (with the original picture),contrast , you shall able to get it. By blurring, it makes the pixels look more spread out. Negative and merge, original pixel - 255 then merge will + original pixel = 255 (white) but because of blurring pencil sketch will be drawn out.
masking :-

compare with -

when for this, i have some problems ..
it seems that now all the pixels changes to red like i wanted them too. The algorithm was to compare with a photoshop picture that has been crop out. If the pixels is the same, i change them to red, if it's different it stay the same.