The Object Raster duplicates and scales a given graphic object according to the gray values of the pixels in a raster image.
This script is now included in the Examples/Rasters folder in the Scriptographer package.