added robustitude in the form of more error checking in photo_strip.c