adds support for previewing jpg, jpeg, gif, png and bmp