Modified meta.media to place media files in arrays labeled by image type.