jquery.getLocalImage.js simplifies getting local image by dialog and jquery.setAdjustedImage.js simplifies setting image adjusted to img box.