Convert image array to animated GIF