Nonsense. The lists vary, but images very rarely make it into the top ten. See, for instance:Photo images are amongst the highest to carry a virus
https://antivirusinsider.com/sources-computer-virus-attack-infection/
In fact it's highly unlikely that viruses actually travel in pictures. Executables (of some form or other) masquerading as pictures is a possibility, but most applications protect the user from that risk.