I think it gets stored somewhere in your Library folder inside your home directory, but if you want to keep the images, get in a habit of just saving them in your Pictures folder or putting them in an iPhoto wallpaper album or something like that. You have to do one more step (to set them as active wallpaper), but it's much better than digging around trying to find where they got cached.