Removes unnecessary head images