Serial implementation of HDR image stitching