Passed around obj as parameter, to avoid multiple image conflicts.

Changed the script to pass around obj: this because in the each obj would always be a reference to the last this, causing problems having contemporary more than one image in the page with the magnifier.