Modify target drawimg and add time limit to video recording