added preloading images for ajax requests

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.