Not really an issue, but a request for help. I am trying to use this with justified image grid in wordpress using the colorbox lightbox. But I think the problem is that this code executes when the page is loaded, and the colorbox only pulls in a flickr image later, when a thumbnail is selected. Any advice for how to change the code to trigger off another event?