updated with support for hyperspectral layers