Check that an image is not too long.

I added checking to make sure the gif is about a second long. You make 21 frame GIFs currently though, so I check they're not longer then 1050ms. I do allow shorter though.