Exclude dot files in image dir
Add --no-hostname option
Change memory unit from KB to GB

Also add type int check for num_cpu and memory size