Remove unconnected images from cache