Transform Board Game Pieces

Transform Board Game Pieces

Hello everyone, I'm trying to create a board game much like Monopoly using jquery ui drag drop. In my game a user can roll the dice and he can move his piece X number of spots from where he was. If his piece lands on any special spot which are squares with images of different items like jewels and gold coins as the background, his piece will have a different shape and color than it did when it starts out.

At the moment I'm able to drag the pieces which are basically icons, from their starting positions and drop them onto the board but I can't do much else. How do I change the image src of the icons to switch out their images when I drop them in the special squares? Please show code snippet.