Magnetic imaging of individual modulated cylindrical nanowires