Removed useless blit and fixed branching