removed orientation hack from debugging, added function to reset calibration rule, modified layout to trim borders and show translation rule, added button to reset rule