swaping the image