A painting of Welsh rugby legend Shane Williams is to join the art collection at The National Library of Wales.