compress image before sending