Use binary mode when opening the image to be copied on a remote server

Otherwise you get UnicodeDecode errors (that go unnoticed since the exception is catched below and ignored)