using natural width js for images block