def optimized_image_url
      unless image.url.present?
        # if this method is called too soon after an image is
        # uploaded, might need to reload the record to
        # have the url available
        reload
      end
      if Rails.application.config.use_cloudinary
        options = {height: 800, crop: "scale", quality: "auto"}
        image_url = Cloudinary::Utils.cloudinary_url image, options
      else
        image_url = image.url
      end
      image_url
    end
def optimized_image_url
      unless image.url.present?
        # if this method is called too soon after an image is
        # uploaded, might need to reload the record to
        # have the url available
        reload
      end
      if Rails.application.config.use_cloudinary
        options = {height: 800, crop: "scale", quality: "auto"}
        image_url = Cloudinary::Utils.cloudinary_url image, options
      else
        image_url = image.url
      end
      image_url
    end
I use block_key col to indicate if there is a fragment block associated
 with this photo
 validates_processing_of :image
 validate :image_size_validation