Added .hdr filetype support

Various bug fixes for non image formats
Added .HDR file support