1 - fix: parent layer should get/use layer info hook
2 - handling of errors: out of memory error!
5 - optimization: if a layer is already completely hidden
6 there is no need to call _BackupPartsOfLayer() again.
7 - optimization: do not copy a bitmap that has the same size and
8 offset as the target bitmap but rather move
9 only the pointer (if possible).