Modifed image acquisition thread to use a shared object.