private Raster createCompatibleRaster(Raster raster) {
private Raster createCompatibleRaster(Raster raster, ColorModel model) {
	private Raster createCompatibleRaster(Raster raster) {        //todo fix gif images (index color model?), optimize        final ColorModel dst_model = surface.getColorModel();        final int[] samples = new int[4];        final int w = raster.getWidth();        final int h = raster.getHeight();        final WritableRaster dst_raster = dst_model.createCompatibleWritableRaster(w, h);        for (int y = 0; y < h; y++) {            for (int x = 0; x < w; x++) {                raster.getPixel(x, y, samples);                dst_raster.setPixel(x, y, samples);            }        }		return dst_raster;	}