fixed looping sprites with HTML5