style cleanup in revealImage function, and replaced expensive jquery is visible call with cheaper offsetParent check