Cleaned immediate mode rendering

Added corner edition capabilities