Fix ratio in blit functions