I want to create a black outline and also a second color line that shows where the shadows of the image are

I want to create a black outline and also a second color line that shows where the shadows of the image are