added some image compression