compress and use jpeg for top img