some updates for photobooth.js