wrote script to swap images on mobile