refact display_image