Move image save function to AdServiceImpl.