Updated GetImage method