fixed bug in product detail images

fixed bug where image zoomer initialized before image loaded, so it had
bad valuse for image width and height and did not work.  put entire
init block inside a load handler and rearranged function structure a
little