5 frames playing every 300 miliseconds in canvas