compress image to under 1000px