Great extension! I feel sorry for anybody who's displaying their images any other way!
Don't let the tags touch the }.
Break the link. Make sure that the URL you enter is NOT a hyperlink. if it is, break it.
Now it should work just fine, or it did for me. For a non-commercial version, my satisfaction with this is through the roof!
Thank you for review.
I'll see if it's possible to fix your tweaks.