Script refactoring, image chooser, hide & delete actions