Fixed behaviour when show_on_appear === true
Refactored code: private functions moved to an outer scope, without making them globals.
Changed default placeholder with empty 1x1 gif.