changed parameters of entity getImage method