def render(parameters = {})

      has_thumbnail = parameters.fetch(:has_thumbnail, true)
      effect_number = parameters.fetch(:effect_number, false)
      thumbnail_template = self.get_template(effect_number)


      if has_thumbnail
        @attributes.map { |key, value| thumbnail_template["###{key}##"] &&= value }
        thumbnail_template.gsub!('##url##', @url).html_safe
      else
        self.to_s.html_safe
      end
    end
def render(parameters = {})

      has_thumbnail = parameters.fetch(:has_thumbnail, true)
      effect_number = parameters.fetch(:effect_number, false)
      thumbnail_template = self.get_template(effect_number)


      if has_thumbnail
        @attributes.map { |key, value| thumbnail_template["###{key}##"] &&= value }
        thumbnail_template.gsub!('##url##', @url).html_safe
      else
        self.to_s.html_safe
      end
    end
rendering image with thumbnail effect applied