Fix for occasional issue with layout after image load for infinite-scroll