Image transfer fix

Fixed problem with binary file access.
Was using text file for data - this breaks some file types.