Currently we look for img[src$=stl.png]. This could be broken by uploading a file called 2d.airport.diagram.stl.png, which leads to weird behaviour.
It would be better if the parser added an appropriate class to 3D thumbnails instead. One could then add the 3D badge using a CSS-only solution.