Added predefined glasses and fixed a resize-glass bug