Adding command description and fixing a bug changing image extention from command line