Use binary mode when transfering images.