You are completely right Tim - what I did was nonsense. I tried to get started by reading the docs and looking at some code. Both lead to not understanding the inner workings and to writing strange code that seamed to work after a lot of trail and error. Thanks for your offer to dig deeper into my issue.
I took the time to better understand Moodle file handling and file backup/restore. The result is easy as to declare the »filearea« where the image gets stored in the »get_fileareas« function in the backup and restore task classes of the block and in the functions dealing with the image. Moodle handles the file backup/restore then automatically.
I hope I got the image handling right this time.