@Tschanzt what about other image file formats?
Maybe it would be better to just try to display a preview for any 'image/*' content-type and then fall back if it did not work?