A method and system for reconstructing an image of an object. The method includes acquiring an image dataset of an object of interest, identifying valid data and invalid data in the image dataset, determining a time period that includes the valid data, weighting the valid data based on the determined time period, and reconstructing an image of the object using the weighted valid data.