fix possible memleak

fix tiny leak if output options failed
support 16-bits per sample palette tiffs