def url(options = {})
      image = image_file

      raise MissingImageFileError, "Missing image file for #{inspect}" if image.nil?

      image = processed_image(image, options)
      image = encoded_image(image, options)

      image.url(options.except(*TRANSFORMATION_OPTIONS).merge(name: name))
    rescue MissingImageFileError, WrongImageFormatError => e
      log_warning e.message
      nil
    end
def url(options = {})
      image = image_file

      raise MissingImageFileError, "Missing image file for #{inspect}" if image.nil?

      image = processed_image(image, options)
      image = encoded_image(image, options)

      image.url(options.except(*TRANSFORMATION_OPTIONS).merge(name: name))
    rescue MissingImageFileError, WrongImageFormatError => e
      log_warning e.message
      nil
    end
Returns a path to picture for use inside a image_tag helper.

 Any additional options are passed to the url_helper, so you can add arguments to your url.

 Example:

   <%= image_tag picture.url(size: '320x200', format: 'png') %>