Make getThumnailUrl() support more fileformats better

* Serve raw url for svgs
* Only attempt to scale png, jpg and gif