Animated Candle on HTML5 Canvas