fixes crop dimensions
cleanup, small fixes
adds downsampling again, disabled atm
unexport helper functions