added img closure