Added check for unknown output image types.