adds display image functionality