Potential nanoparticle treatment for macular degeneration and retinitis pigmentosa