makes some fixes for jCrop