refactoring getImage