added attr_protected to image model