@alware, You need to re-encrypt the script !
The initial working directory of the encrypted script (or compiled program) is the directory where the file is located.
For example, your script is in the D:\ directory, and your picture is in the same directory D:\001.jpg.
When you search for pictures, you can use the relative script path: "001.jpg".
I suggest that you use dir:=A_WorkingDir to save the script's working directory at the beginning of the script,
then you can use the absolute path of the picture: dir . "\001.jpg".