fix a dead lock in PYImageLayer