Force binary mode for file reading when embedding it.
It looks like sometimes on Windows images are not recognized as binary files.
Fixes #315