Add spark features

Generation of spark scripts from image processing gui
Ability to view spark images from image viewer gui