Fix problem where calling new Raster().setSize(size) threw an error.