Detection of retinal diseases using an accelerated reused convolutional network