added fsm jpeg