fix issue 2
compress jpeg
add paginate(fix issue4