When submitting a form, I want to make sure a field is a valid image URL.
I could make an AJAX endpoint on my server which CURLs the URL and parses the output with a
Do this, the following code will replace any non-image with a default image.