Added canvas offset
Added layer block management