The Queen is pictured smiling at first official engagement since Prince Philip's death