fix bugs in generation of alternative resolutions

Fixes two bugs in generation of alternative resolutions thumbnails:

* Casting geometry values to int after calculating.
* Assign calculated geometry-tuple to an own variabel. Not doing this will cause the value of geometry in the last iteration to be `geometry[0] * 1.5 * 2`