Fixed thumbnail template tag treating provided sizes as strings, not integers

Fixed thumbnail template tag treating provided sizes as strings, not integers.

This closes #217.