push image with optional registry, remove intermediate containers after image has been built