Add fixes to newImageDestination to write to a file when stdout is redirected
Add fixes to newImageDestination to write to a file when stdout is redirected

Signed-off-by: umohnani8 <ed14d56198a00c20f6cfcd6e69dfd4189930e8e4@redhat.com>

containers/image,masters-of-cats/image,containers/image