Persistent Betti Numbers for a Noise Tolerant Shape-Based Approach to Image Retrieval