Added cache image location macro. Added function to test if cache image already exsists.