Bridging the Gap: Enabling CBIR in Medical Applications