Ian: can now write secondary and tertiary bitmaps