Automatic diabetic retinopathy detection and classification system