Add/remove Sprite components sometimes fails to change background-image

When switching between two Sprite components that use different background
images, the second background-image fails to get set properly.
Merge pull request #838 from FallSe7en/develop

Add/remove Sprite components sometimes fails to change background-image