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_helpers.rb
    path of file: ./repos/mushroom-observer/app/controllers/observations_controller
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

#  :section: Helpers
#
#    create_observation_object(...)     creat
    
  def attach_good_images(observation, images)
    return unless images

    images.each do |image|
      unless observation.image_ids.include?(image.id)
        observation.add_image(image)
        image.log_create_for(observation)
      end
    end