update to createRasterFromArray