Fix aspectRatio of the crop selection.
Code cleanup: move html popup to a tpl file.