Handle PIL import (and imageUtil, figureUtil) same as numpy