Chaotic image encryption algorithm implemented by MATLAB