corrects first frame logic and adds cleaner background