Make checking image type for previewing extensible

Make checking image type for previewing the image more extensible by
using a list, as well as allowing more image types to be opened using
the previewer