Added support to have image for on and off state.