faster way to set imageData in elevation sampler