Detection and classification of diabetic retinopathy using retinal images