added validations to the URL to end in gif, jpg, or png

![feet](https://f.cloud.github.com/assets/4197603/1608187/be8275ba-54dc-11e3-9967-09e8eb603290.gif)