implemented ruby-psd base