Adding script to compress image