added attack img swapping