Changing Toolkit Thumbs Drivers: Scale, Crop

You can overwrite the im driver from a plugin without changing the core:

thumb::$drivers['im'] = function($thumb) {
  // whatever
};

You can use the existing driver as a template and modify it to do what you need.