Q 4: Will the library support flattening a multi-layered image?

Yes, this is very useful for most graphics related software.