changed place where prof_img_path is written