mr. gainsborough , the portrait artist who had been commissioned to commemorate the christening , skulked in the shadows , motioning to his assistant and squinting back and forth from his sketching pad to the scene before him .