update image dimension for last post