refactored the service names and use commonJs pattern
image service and file service updated