Fixed conditional statement in picture cleaner