and add new function gimp_layer_new_from_buffer() which takes a GimpBuffer. This will make sense soon :)