Update Issue#162
Update relink image, output log to image folder