take picture from image tag, instead of rel from div. And a bunch of other small changes