updating path to image