Set relation accepts_nested_attributes_for for item and image model