Implemented ImageCount command line option