p.s. there is small glitch with checked checkboxes though: image is nottransparent.
I've created pull request for dlib with added support of transparency in indexed color PNGs. Issue with non-transparent buttons will be fixed after pull request integration.