bug fixes on edit img, delete img works.