minor fixes
update to img.py to add fixDeriv