change slim template to erb template, and display picture when list files