adding class method to check photo access state