Implemented rip-off of blob detection example.