Added getObjectUrl function