Automatic generation of linear and radial gradients in SVG format from Photoshop layers