freeimage: Correctly handle saving uint16 images (closes gh-1101)
Merge pull request #1102 from stefanv/bug/freeimage_uint16

freeimage: Correctly handle saving uint16 images (closes gh-1101)