Adding the images location to the patching system.
Adding workaround for programmatically determining absolute path; So now this can be imported as a module.