Fixed log file and image file path issues.