gdiplus: Save total and current frame in the image structure.