Removed some superfluous graphics code