Removed redundant image code and stabilized z fighting