moved image name to global