You seem to have gone in a wrong direction with this, Robert.
This was what you mentioned in a previous message too, now deleted.
If you copy the example link from the first post of this topic and paste it into a message, you’ll see it directly shows as an image just fine. OP’s goal is more about a way of producing these links easily for his forum users, if I understood correctly. Of course the links also need to be processed the same way as when you insert them manually in a post.