Added context manager for temporary utility containers and image flattening.