code touchups
move mutation calculation to polygon class
support for non-square baseline images
fixed image writing