Edge detecting works with square images