bump up image count. fix self ref error.