Portable medical device and method for quantitative retinal image analysis through a smartphone