Use previous delay by default.

Also use word2bin($delay) in addGifFrames($i, $delay).