Resizing of images after adding file to new item, where?

Hi, I was looking for the piece of code that resizes the image and creates the thumbnail for it.

the idea is to customize its behavior and file location.

Would it be easier maybe create a plug-in for that?

Thanks!

Omeka's code for making derivative images is found at application/libraries/Omeka/File/Derivative/Image.php.