How to retrieve “custom url” from image attachment in wordpress

I found the solution here: http://wp.tutsplus.com/tutorials/creative-coding/how-to-add-custom-fields-to-attachments/

It’s a simple plugin that adds custom fields to the attachment media editor. You can modify the fields and then display the values within your theme.

Thanks all for the suggestions.