remove unnecessary images