Fix creating null context for separate pictures