In this line:
bw.write(imgOut.lat & imgOut.lon);
You're writing the result of the bitwise AND operation of your latitude and longitude. You should write the values by separate:
bw.write(imgOut.lat);
bw.write(imgOut.lon);
But this will write the data as single char. Instead, it would be better if you print a String
representation of the data. Since you're writing to a csv, you can separate the data by commas:
bw.write(imgOut.lat + "," + imgOut.lon);