Image gets deleted

I am not able to display my image after capturing. I already got the image path and the filename but when I tried to display it, it says ERR_FILE_NOT_FOUND. My code is something that I copied from one of the threads here

image