Remove unnecessary images