* Add compress image function.