Added config information for setting up the Image directory: IMAGEDIR
1. Added the config settings for defining IMAGEDIR
2. Fixed issues with handling  files which don't have metadata information