There are lots of error like <a><img></a>

You should see how to display the image

Apart from that code you don't have the img tag to display full image