func (ref dirReference) NewImageDestination(ctx context.Context, sys *types.SystemContext) (types.ImageDestination, error) {
	compress := false
	if sys != nil {
		compress = sys.DirForceCompress
	}
	return newImageDestination(ref, compress)
}
func (ref dirReference) NewImageDestination(ctx context.Context, sys *types.SystemContext) (types.ImageDestination, error) {
	compress := false
	if sys != nil {
		compress = sys.DirForceCompress
	}
	return newImageDestination(ref, compress)
}
// NewImageDestination returns a types.ImageDestination for this reference.
// The caller must call .Close() on the returned ImageDestination.