Changed getImage method