hip2bmp: various improvements and fixes.

Added option to always export the fullsized image out.
Also fixed handling of offset in extended headers.

Various improvements in code too and minor stuffs.