Added additional exception for image upload to work with Rails 4