added support for many raster extensions, converted isFiletype functions to dictionary