implemented datamapper to create a photo gallery with rails 4