removing vars related to images