title: Using Carrierwave, how can I make sure the remote url is valid picture before trying to save it to the record?
body: <p>I was attempting to save my picture files in the following manner in my ActiveJob, but a lot of my records were showing up as invalid. After looking into why, it appears the remote url isn't finding a valid picture and is returning a 404 error message.  How can I change my current setup to (1) attempt to get the picture, (2) if it's an invalid link then ignore it and still save the record -- just without the picture?</p>
  
  <p>My current setup...</p>
  
  <pre><code>if self.headshot_url.present?
     player_record.remote_headshot_image_url = self.headshot_url
     if !player_record.valid?
       player_record.remote_headshot_image_url = nil
     end
  end
  </code></pre>