Yes, this is a 6 year post! Today I ran into the same error, and it took me a lot longer to fix it than I should. I actually used my image control at startup, so I obviously could not set its background image at runtime. You can also check this twice if you are here.
A guy source share