Fixed Sample to use graphics layer and AI layer