When you compile, the source file, by default, goes in the QB64 folder with QB64.EXE.
What you've done is compiled one EXE in the data folder with the picture with v1.4, and then compiled a separate EXE in the QB64 V1.5 folder. You're still seeing the EXE in your data folder from a previous build, but the one in the 1,5 folder is what is executing and tossing an error for invalid handles from files not pathing properly.