loaders: TIFF: Add saving support.

Add write support for RGB888 and Grayscale TIFFs.

Signed-off-by: Cyril Hrubis <metan@ucw.cz>