Automated diagnosis of ophtalmic conditions based on retinal image processing and machine learning techniques