added polymorphic association to images and comments