def extract_image_data(instagram_metadata)
      {
        url: instagram_metadata.link,
        external_id: instagram_metadata.id,
        large_url: instagram_metadata.images.standard_resolution.url,
        name: instagram_metadata.caption && instagram_metadata.caption.text,
        tags: instagram_metadata.tags,
        user: instagram_metadata.user,
        original_datetime: Time.at(instagram_metadata.created_time.to_i).to_datetime,
        original_metadata: instagram_metadata,
        media_type: instagram_metadata.type,
        video_url: instagram_metadata.videos && instagram_metadata.videos.standard_resolution.url
      }
    end
def extract_image_data(instagram_metadata)
      {
        url: instagram_metadata.link,
        external_id: instagram_metadata.id,
        large_url: instagram_metadata.images.standard_resolution.url,
        name: instagram_metadata.caption && instagram_metadata.caption.text,
        tags: instagram_metadata.tags,
        user: instagram_metadata.user,
        original_datetime: Time.at(instagram_metadata.created_time.to_i).to_datetime,
        original_metadata: instagram_metadata,
        media_type: instagram_metadata.type,
        video_url: instagram_metadata.videos && instagram_metadata.videos.standard_resolution.url
      }
    end
Produce processed image metadata from Instagram metadata.
 This metadata is accepted by the save_image method.

 @param [Hashie::Mash] instagram_metadata The single image metadata returned by Instagram API

 @return [Hash] processed image metadata