gif: added blitting function for tilemaps and bitmaps
video: dropped spinlocks for condition variables