Fix #72

Be aware that there is another bug of prettyphoto that don't correctly get
the image url, trying to use instead the window.location.