image crop JS stuff (for reals)