Split resource_setup for image tests

Split up the resource_setup method for all the image tests, as per the
latest spec.

Partially-implements bp:resource-cleanup

Change-Id: I9cae905e8191e650bd0ae24c09926fc04f957edf
1 file changed