Added exception handling for minimizing window. Added back in difference map.