Changed the way preview images are being stored. Moved them out of the database and into a directory. Now web browsers can cache the preview images and improve load speed.

Fixes #2