cleanup take-picture script