Compress image