Add resource attribute to newly created images

Bug: 49596
Change-Id: Ifbde0f5a4c8eb01df7b429abbb8ab0d4431c1c6f
Merge "Add resource attribute to newly created images"