cleaning up code style

image and thumbnail location now stored in sinatra settings
image and thumbnail location passed to templates
long lines have been split.