Adding error message if user tries to write without specifying output image.