ensuring that the path to the sample image is always constant no matter the machine