compress preview image