Adding support for dymanic thumbnail size