Move error collection callback to a named function
Move error collection callback to a named function

Move error collection callback to a named function to help code
readability.

ImageMarkup/isic-archive,ImageMarkup/isic-archive,ImageMarkup/isic-archive,ImageMarkup/isic-archive