fixed definition of long-term picture when checking whether MVs should be scaled
fix check for taking B0 reference
remove debugging code