complete display image function