add script to compress image