move provider image logic to parent class