Using bootstrap modal to select file and then upload single image to server. After uploaded, PHP crop or scale image according parameters from javascript