resize uploaded photo size to div size on book form(js)