.foo img:last-child {
display: none;
}
.foo:hover img:first-child {
.foo:hover img:last-child {
display: block;