release
Frees the recorded buffer and the buffers kept for reuse, leaving this layer empty: hasContent is false, size is 0x0, draw draws nothing and toBufferedImage fails.
record makes the layer usable again, and calling this on an empty layer does nothing. The transforms are left as they stand.