added support for json array to create multiple psds