deleting unused image references in <header> and <footer>