change get_rgb() and ecalloc() arguments, add draw_anim_image() for animation gif