Add color depth support to GIF writing

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>