Cleaned up libJNICanvas.