Added support for new files array layout

Related to https://www.facebook.com/photo.php?fbid=176472465894045&set=a.120307691510523.1073741828.119182594956366&type=1