improved thumbnail scaling in posts