Fix for issue #26

Fix for random crashing caused by the CADisplayLink during animations.