public static void DrawRect( Graphics g, Bitmap img, Rectangle r, Rectangle lr, int index, int Totalindex )