Clone gradient in singleband gray renderer. Combine new opacity with existing one in mapserver