Fixed non-LWT bug

Fixed bug with icons drawing incorrectly when not using LWT (also
apparently with LWT).