Reset the campaign state on edit
Refactor variable names and classes
Empty the src attr before setting new src
Clarify comment
Move single-use function inline
Warn user when the cropping selection is too small