Fix rendering of layers with masks that have different origins
Version 2.1.2