Fixes #8031: container model initialization is no longer order-dependent

Currently container model image and tag attributes must be initialized in a specific order. This removes this order dependency.