add thumb argument
improve script to produce thumbnail on request
replace old thumbnail gml to png