added item support to genimg.py