You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: form_builder.rb
    path of file: ./repos/ekylibre/app/helpers/backend
    
    the code of the file until where you have to start completion: # ##### BEGIN LICENSE BLOCK #####
# Ekylibre - Simple agricultural ERP
# Copyright (C) 2009-2015 Brice Texier
#
# This program is free software: you can redistribute it and/or modify
# it 
    
    def picture(attribute_name = :picture, options = {})
      format = options.delete(:format) || :thumb
      input(attribute_name, options) do
        html = file_field(attribute_name)
        if @object.send(attribute_name).file?
          html << @template.content_tag(:div, @template.image_tag(@object.send(attribute_name).url(format)), class: 'preview picture')
        end
        html
      end