Removing unnecessary image files