running animation frame that has access to the context