Add get subcommand for conditionally retrieving images