Ensure that image is saved in script dir, not local dir