make homepage picture auto resize to 50%