Add picture code, shadow, state machine