modify display util to show images using PIL