Design and Implementation of a Content-based Image Retrieval Tool