Fix some errors in imgfac.py
Fix some errors in imgfac.py

Introduced by commit 0e931dd3

LalatenduMohanty/imagefactory,henrysher/imagefactory,LalatenduMohanty/imagefactory,redhat-imaging/imagefactory,henrysher/imagefactory,jmcabandara/imagefactory,redhat-imaging/imagefactory,jmcabandara/imagefactory