Add efficiency to resize

These elements do not need to be done on each iteration of the loop over all the area tags, better to do them outside the each
- calculating the rescale ratio
- adjusting the image size
- triggering the change handler on the target