JavaScript - Drag and Drop

This web copies from the website: JavaScript Drag and Drop.

However, it does not work perfect when I try to replace item by my photos.

Help me to improve my card game!