autosize post image