Hide attachment links for inline images

This patch allows detection of inline images and hides the download links for those images in the thread view. Starting from 1.8.0, images have a hover link for download, so there's no need for an extra one.