Add option to obtain thumbnail dimensions

See
http://beta.woltlab.com/index.php/Thread/4094-Dateianh%C3%A4nge-Vorschau-besser-skalieren/