getWidth(), getHeight()) :
raster.getBounds());
while (count++ < numRetries) {
try {
RasterProxy rp = remoteImage.copyData(id, bounds);
try {
if(raster == null) {
raster = (WritableRaster)rp.getRaster();
} else {
raster.setDataElements(bounds.x, bounds.y,
(Raster)rp.getRaster());
}
break;
} catch(ArrayIndexOutOfBoundsException e) {
raster = null;
break;