GIF style animation with <canvas>