changing where the caption is being called. Calling it on resize cuases it to incorrectly modify the caption size even though the size of the caption remains the same. fixes #2