fixed some bugs in dm gains
WFS now uses quad cell centroiding if 2x2 pixels