Testing a script to upload images to a database