added applyZero function

Also modified ImageList to support in place division
and modification of headers, as well as saving all images
in the list, and added a utility function to ensure the existance of
a directory