Bugfix image resizer

PS: the comments are explanations about what I've done. This is my first PR, so I dont knew how that works
This should still be using the oneEvent, not .on as we don't want the event to fire on every mouseup.