Entity* TmpE1 = CreateOverlayEntity(GetParent(), "testE1", TmpC, 64.0f, 64.0f);
SetupAnimEntity(TmpE1, 4, 4, 0, 0);

Entity* TmpE2 = CreateOverlayEntity(GetParent(), "testE2", TmpC, 0.0f, 0.0f);
SetupAnimEntity(TmpE2, 2, 2, 0, 0);

When I use this code first entity is mapped like second. I do not know whether the function is designed for such use. Maybe I need to share images on the parts?