An Algorithm for a Progressive Acquisition Image Sensor