getImage method