remove old images, and fix relative path of cached images.