CGLayer implementation, CGContext initial work