Modified the condition of while loop in loadImageXML function when pair tag doesn't exist
Changed edge detection method to Canny
Added test codes