Refactors RainbowImage
Optimises memory usage by dropping unneded bitmap
Avoids memory error when resuming several times