Use isImageClass and isAlbumClass in related items plugin