Deployment subsystem

This is wrong - the image should be replaced by the value represented by a trigger, and if the trigger says that container "foo" should be replaced when the image changes, it doesn't matter what value for the migae is stored in the template, it should be replaced.