Show progress bar while image previews are loading
This resolves a race condition between sending and validating private message attachments. More complete fix in !1038 (merged) which is based on this MR.
Closes #1492 (closed), #1509 (closed), #1510 (closed)
Edited by Torsten Grote