Don't create images without source


Sometimes image property doesn't have default value. In these cases,
make the property point to null and don't create Image element.
Also unify the image element naming code.

Task-number: QTBUG-109852
Pick-to: 6.5
Change-Id: I5fc51b8febe08bdab3157ccfc98a6afb27266aa9
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
commitfb9589070144dccfa6ad32f6acff143385a08b8b
parent80bb319457accb740fa48fd64d9b92c12ccd7d69
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeTue, 10 Jan 2023 07:58:04 +0200