Fixed some errors. Now we check the save dir and open dir to make sure  format is correct 'dir/' so we can append 'dir/sub/'. Also we check if  the sub directory exists and if not we create it. Finally, fixed an  error where the first image opened in the directory stream was not  actually considered in our analysis or post image output.
Fixed some errors. Now we check the save dir and open dir to make sure 
format is correct 'dir/' so we can append 'dir/sub/'. Also we check if 
the sub directory exists and if not we create it. Finally, fixed an 
error where the first image opened in the directory stream was not 
actually considered in our analysis or post image output.



git-svn-id: 82527b0ca8edf2e74085a3a5e350e9ad14b9525d@284 ae4af862-681a-43e1-b28c-8c040b23e139

tdenewiler/stingray,tdenewiler/stingray,tdenewiler/stingray