compress the portrait image