wrote script to tt  to swap images