remove unused image resources