Thanks for that! It seems to work, but I couldn't see the image in the post/reply until it was posted or previewed... while composing the post it shows as the blue question mark.
Maybe it only works for root files? I tried a file that was about 2-3 levels in and it wouldn't work, maybe because the parent folders did not have sharing turned on?