// draw entity image
graph.drawImage(tileManager.imageFor(entity, facing), 0, 0, this);
// create final image
if (zoomIndex == BASE_ZOOM_INDEX) {
image = createImage(new FilteredImageSource(tempImage
.getSource(), new KeyAlphaFilter(TRANSPARENT)));
} else {
image = getScaledImage(createImage(new FilteredImageSource(
tempImage.getSource(), new KeyAlphaFilter(TRANSPARENT))));
}
graph.dispose();
tempImage.flush();
}