Simplified GLG2D implementation