Added better filenames for images.

The connection sometimes gets reset, so I added error printouts because of this