translated image to binary file