Fix image-viewer to handle missing optional path

Create a test for missing optional path parameter and implement
functionality.