load pil and hook display of images