Accept FreeImage flags in imread/imwrite within FreeImage plugin

Fixes #1195.