remove refs to images