I made a little dummy app to test this out in console, and got the following to work, but (maybe it's just me) the naming seems wrong:
class Person < ActiveRecord::Base
attr_accessible :photo, :name
has_many :photos, :as => :attachment, :dependent => :destroy
belongs_to :photo
end
class Photo < ActiveRecord::Base
attr_accessible :file_name, :name
belongs_to :attachment, :polymorphic => true
has_one :person
end
Ignore the fact that I called it Photo rather than Image in this one...
Photo has_one person, but there are going to be instances where the attachment is to a Title (which doesn't need that relationship), and I'm not sure what happens then.
Walter