Tileset editor: correctly paint patterns with transparency.