Added support for reddit thumbnails

If an image is a child of a link, use that link's target instead of the
non-existant target of the image.