put in framework for getImage thread