fixed bug with transparency in genimg.py