Nice and easy dos tool. Enumerate the width and height parameters and bring down the server fast.
Better way to do it is to specify, or allow admins to specify, a set of named sizes and only allow these named sizes.
You could also think about adding parameters to determine the crop, or force aspect ratio etc. (with the same risk of dos)