Added support for img/hdr format