fix PYImageLayer buf in Simulate