added image display functionality