def src_path image, sizes
      case device_type
      when :desktop
        image_src = sizes[:default] == :default ? image.url : image.send(sizes[:default])
      when :tablet
        image_src = sizes[:sizes][:tablet].present? ? image.send(sizes[:sizes][:tablet]) : image.send(sizes[:default])
      when :mobile
        image_src = sizes[:sizes][:mobile].present? ? image.send(sizes[:sizes][:mobile]) : image.send(sizes[:default])
      end
    end
def src_path image, sizes
      case device_type
      when :desktop
        image_src = sizes[:default] == :default ? image.url : image.send(sizes[:default])
      when :tablet
        image_src = sizes[:sizes][:tablet].present? ? image.send(sizes[:sizes][:tablet]) : image.send(sizes[:default])
      when :mobile
        image_src = sizes[:sizes][:mobile].present? ? image.send(sizes[:sizes][:mobile]) : image.send(sizes[:default])
      end
    end
Let's identify the default image size for the image tag. If it's a desktop then our
 default src attribute should be desktop (or default) but if it's a mobile or table
 then we should set the src attribute to the mobile or tablet image