a golang clone of layervault/psd.rb