fix #2: 'The images are transferred only partially over TCP' (finally)