Create snippet.php

Snippet from line 52-82 of image-feed-widget.php