resize the picture of new post