Simple Fog Event Tutorial for RPG Maker VXAce

Hi, I've tried using your fog event tutorial but when I try to turn it off I get this message:

script 'Sprite_Picture' line54:NomethodError occurred. undefined method 'width' for nil:NilClass
I get the same one just by trying to use it at all. Though for some reason, it only happens when the Move Picture commands are set to "Center" instead of "Upper Left".

Original thread: https://forums.rpgmakerweb.com/threads/simple-fog-event-tutorial-for-rpg-maker-vxace.4933/