simplified getAllAttributeKeys
made font metrics calculations more exact / no gap between lines now
color index generated
initial support for frames, with sample palette frame