added bgimg to genimg.py