Added support for transparency and textblocks in layers