The function "get_attached_data" hasn't always detected photos