How to reset password without deleting data?

I forgot my password and the phone is locked. Is there any way i can reset it without deleting the whole phone? I have some important pictures i cant afford to lose. please help

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 1

crwdns2944067:02crwdne2944067:0:

I have my old phone ,forgot my password and my old Gmail account for me to use recovery mode

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0