Changed thumbnailerMode to mode; made some methods private; beautified URL construction