Alright Shape detection is working pretty well.

Tried it on a couple of stock Microsoft photos and a photo of a guy standing in the back ground.

Took care of some potential crashes. Needs to set a limit for the picture loaded.