fixing code left behind from deleting the image button