Trim whitespace from URL, raise exception on empty URL
Ensure file is an image
Stub out content type validator when testing