use thumbnail plugin later
updated photos schema