Added the pictureToJSON bash helper