Refactoring getImage params