A New Shape Distance for Content Based Image Retrieval