move images to database
fix bug: always display the first essay's image on every essay