It was using dummy image buffers to indicate if an animation container could be initialized or not. Use booleans instead.