Added imgloop snippet