Changed tex output to include binary image and manual threshold histogram