Refactoring on img download services