I just merged https://github.com/discourse/discourse/commit/b770c30391d0294a498d73e6a5272fb437291833 which allows onebox images to be selected as topic thumbnails. There is a specific exception for the GitHub onebox, and we can add more as needed.
(cc @Terrapop @merefield)