first step to refactor WBImage to a generic resource record