we get an array of objects if there are multiple photos but array if there is only one. typecast to array to be consistent. (cherry picked from commit 1b14a2f3)