creating a script to test reading an image from the database and writing
that image to a temperary output folder