When artist Robert McCurdy was taking the high-resolution photograph he would use to paint President Barack Obama’s official portrait, he had some instructions: No smile, no gestures and look directly into the camera.