Use RGB for TIFF encoding

Close #10844
access/http: remove dead code