implement rest-service client
refactoring + impl image.read handler