Helper for saving in the PSB format in Photoshop

Added a function on the photoshop module that allows to save either PSB or PSD files while preserving the compatibility settings.
Should break this up into separate lines to keep too much from happening in the same line.
That would bring line length down and if there is an error, make it more clear where it happened.