added support of all RAW image formats, cosmetic changes