A web service architecture for image compression, indexing, annotation, and XML metadata validation