Code Indentation and Formatting improvements
Flatten the image before starting the cutting (= huge speed improvement for layered PSDs!)
Provide an option to set whether we want to save transparent tiles or not
Since we've flattened the image we don't need to get all visible layers, but just check if the activeLayer is empty or not