save log in the image path

add path to log filename , save log in the image path