--- a/scripts/mono-heapviz
+++ b/scripts/mono-heapviz
@@ -7,7 +7,7 @@
 
 from __future__ import print_function
 import sys, os
-import Image, ImageDraw
+from PIL import Image, ImageDraw
 from xml.sax import ContentHandler, make_parser
 from xml.sax.handler import feature_namespaces
 from optparse import OptionParser
