add IndexError for page-number
page name filled figure length
change rule for other image format