Fixed gif output

Replace quantizer and added wait to semaphore slim.
TODO: Replace method call in ImageFactory methods.