only preview the attachment upload when its an image
Merge pull request #103 from thraxil/only-preview-images

only preview the attachment upload when its an image