add restore stack to Context
add private section
fix bug: lockMemory returned data that had no premultiplied alpha