Build a proper console application
Simplify getting default directory
Add getImagePath() helper
Add option to set image format
Dedicated show and export commands
Move export logic to Export command
Add optional format argument