fixed all bugs, bug fimg2d clk is null