Enabled visualize command to work on devices.

- Improved version of #18 by @bencochran.
    - Removed _showLocalImage.
    - Merged _showImage and _showRemoteImage.
    - Added error message if attempt to get image data returns nil.