Fix potential error when calling Colorbox directly. References #591
Potentially worked around browser limitation of reporting that an image height and width is 0 immediately after onload.  Fixes #535