Helix: Defining thumbnail width/height

I am generating these dynamically, is there anyway I can do it during the request or response?