add model outside of load image callback