Auto url added with the user uploaded photo

I see some sites where if I upload any photo with the post,it is being edited with their url/logo ,how may I do that for my site?

Thanks
Monsur