Updated snippet imgloop