Text this: Image analysis of diabetes pathology: classifying with precision via an upgraded resnet50 framework