Make the post and attachment just as you did. Then view your post' attachment and copy its url. Edit the post and use the image function in the instant UBB Code. Paste the copied url in and you are set.
[Linked Image]