image url refactor