Error: Couldn't open image file 'tmp_name' for reading (no such regular file)