Support reference images of type .tif, .bmp, .gif
Fix broken test