remove unused images from math