make photoPreview from client(phonegap)