BufferedImage image = document.getValue();
if (image != null) {
paintBorder(g, ic);
Dimension size = ic.getCanvasSize();
Graphics igc = g.create(2, 2, size.width, size.height);
<BUG>if (ic.isTransparencyChessboardVisible()) {
paintChessboard(igc, ic);</BUG>
}
paintImage(igc, ic);
if (ic.isGridVisible()) {

BufferedImage image = document.getValue();
if (image != null) {
paintBorder(g, ic);
Dimension size = ic.getCanvasSize();
Graphics igc = g.create(2, 2, size.width, size.height);
if (ic.isTransparencyChessboardVisible() && image.getTransparency() != Transparency.OPAQUE) {
paintChessboard(igc, ic);
}
paintImage(igc, ic);
if (ic.isGridVisible()) {
