Pre-Calculating the GIF height and width