Unlocking the secrets of illuminated manuscripts