Given an Image with varying contours create a stroke/outline

Essentially, I'm trying to find the most straightforward/simple way to outline an Image with varying contours. The intention is similar to the way iMessage allows you to add an outline to a sticker. The "goal" in the example is simply the input image on top of the outline.

Given an Image with varying contours create a stroke/outline
 
 
Q