Although I see my method hasn't followed the flickr guidlines and does not link back to flickr.
OK, now I've got it in a way that does link back by following the instructions in the first message and it results in more complex HTML. I'm trying to think of a way to explain what you should see in your message if it has worked, but every time I do that it just shows the image instead.