fixed incorrect height when using the ajax request option

When colorbox is used with the ajax request option, images were not preloaded, which led to incorrect heights in the prep() function. This fix should resolve the issue.