There is option on icloud that transfer or download your photo to computer when you connect iphone to computer. For that you need to download desktop version of icloud on computer.
or try this
go to setting – icloud – photo – then turn on icloud photo library. Now when you take new photo, picture or video on your iphone, ipad or ios devices. It will upload automatically to icloud when you connect to internet on your device.