Resize method + Helper refactoring + Observer to flush generated images cache files

- Implementation of a resize method, in addition to the existing crop method.
- Helper has been refactored to prevent code duplication between the 2 methods.
- Generated images cache files are now automatically flushed when you flush the 'Catalog Images Cache'.