added image file view function