If you have a "File Open Box" then you should already have the file path. What ever method you are calling to launch the open file dialog will most likely return the path to the file. For example in Win32::GUI you could use:
my $file = Win32::GUI::GetOpenFileName(
-owner => $Window, # Main window for modal dialog
-title => "Open an image file", # Dialog title
-filter => [ # Filter file
'JPG file (*.jpg)' => '*.jpg',
'All files' => '*.*',
],
-directory => ".", # Use current directory
);
You would probably not want to use the directory flag in your case because you stated that the image could be anywhere. My point is that you can now use $file to open the image, it contains the path to your file. My guess is if you are using some other package/method that it too would return the path to the file.