Prevent memory leaks with skull rendering