Rails application to create huge image galleries