Add image export methods.

The export methods in obj_detect.py and obj_baxter.py allow the user to
write the segmentation results without directly using OpenCV.