Fixed smoothing. Before it was using nextColor as prevColor when smoothing got interrupted. This would result in hectic and wrong changes.
Further memory optimization