placeEvent can not set image to layer correctly

I try to use "placeEvent" to set image to layer, but new layer lost some pixel(not offset problem)
and I also try to paste image to layer directly, it can work correctly, then I just need to set the right offset to make two layers matching.
although "placeEvent" can make a right size layers(512 * 512), but it looks like the pixels are overall shifted by 1px in a certain direction.
I saw an article saying this problem: Solved: place a pictures and the left=0,top=0 - Adobe Community - 10410203
I try it but I can not get the correct layer, it seems that I meet other problem
so I also try open new document and duplicate, it works properly
