Simple HTTP server and gif animation on a canvas