Add attr_accessor for image