Some syntax corrections

Also remove my inserted function and define it in-situ
Revert to calling create_crop for each size

New way not needed now that we save the crop sizes higher up
Correct variable name change form last commit
Simple variable correction
Correct crop_image alterations

These were placed for testing purposes: now remove them
Add unit tests

Extensive unit testing for the new crop & link code.
Don't update the crop %ages if no user crop

We only need to update width & height in the db unless we have
options[‘crop_pct’] set