added a test for view_image