Revert "added img closure"

This reverts commit 9902cff9b5062b3996c1b161fd5887774f9fe00b.