Added some commented out attempts to further optimise FFD. Changed bmpshape.cc.