hdr: options support and bugfixes
- Support for Size and Format options
- Added compile option to generate 16-bit instead of 32-bit images
- Includes MR !189 (merged) and MR !192 (merged) fixes
NOTE: This code only works with Qt 6.2+
Edited by Mirco Miranda