There are many way to do it. One I have done in the past that is fairly simple is masking the outside of the image then copying the mask, invert it and make it slightly smaller. You should now have an outline of the shape. Now any color movement behind these 2 layers will seem to be a line.