How to make a layer on a 16 bit image