multiple fixed in docker images

* `docker images -tree <invalid_image>`
* `docker images -viz <image_name>`
* `size in docker images -tree`

Fixes #3106
Fixes #3107

Refactor -tree and -viz, it's the same thing, only the display differs.