Fixed redundancy in code for getImage() method