Fix bug in addImg