Ok, this can be done. I have managed to do it.
In my case the picture was predefined in the app so I called call the image directly in this case. it just means writing new code for every combination of choices which will be a pain rather than like .net where you can write a variable code allowing multiple results.
But this is the best solution I could come up with, was when the user sets the predefined image an intent is used to pass this info on as boolean which the calls for the image path and at this point I save the path as int and call for it later on form load under the setImageBackgound