Detecting corner points for puzzle pieces