This is in case there is some problem copying the image to the specified directory