Use true/false instead of 1/0 for the state variable of the handler of the pictures