Cleanup

I put the log path to an config file and write the unit test 
There is an issue in addImageDimensionToRels function.