Add `width` and `height` options for filename template

Fixes #138.