Hopefully fixed the hang and the question mark of death.

The question mark was shown when a bad .jpg file was transferred.