fixing the image location in the file