support standard options for list-images and show-image commands; refactor to avoid name conflict on mac os x (fix #151)