Refactor show images command to use it's own provider.

This commit also adds some unit-tests for the `show images` command.