resize image for weird post