only touch and rename the cache image when the cache image still exists

git-svn-id: https://svn.muze.nl/svn/ariadne-php5/trunk@5807 7882d7ee-46e0-0310-a255-a28a61b628e4