Least squares image estimation in the presence of drift and pixel noise