add fix for bug where nypl image id is nil and for when the repo api returns an identifier as a hash instead of an array