Again, either use an absolute path in the open, or else chdir to the correct directory.
In reply to Re^3: Image content help by ambrus in thread Image content help by Mercio