def import_image(image_path, object_class_name, finder_method, image_class_name, verbose=true)

	  	filename = File.basename(image_path, File.extname(image_path))

	  	imageable_object = object_class_name.constantize.where("#{finder_method} = ?", filename).first
	  	image_object = image_class_name.constantize.new
	  	image_object.imageable = imageable_object
	  	image_object.image = File.open(image_path)

	  	if image_object.valid?
	  		image_object.save
	  	else
	  		puts ""
	  		puts "Error while saving #{filename} - #{image_path}".red
	  		puts ""
	  	end
	  end
def import_image(image_path, object_class_name, finder_method, image_class_name, verbose=true)

	  	filename = File.basename(image_path, File.extname(image_path))

	  	imageable_object = object_class_name.constantize.where("#{finder_method} = ?", filename).first
	  	image_object = image_class_name.constantize.new
	  	image_object.imageable = imageable_object
	  	image_object.image = File.open(image_path)

	  	if image_object.valid?
	  		image_object.save
	  	else
	  		puts ""
	  		puts "Error while saving #{filename} - #{image_path}".red
	  		puts ""
	  	end
	  end
Import Images
 -------------