add tests for 'images' subcommand