Util used to CompressImage

add a uitl used to compress image which is larger than 200KB