On the cryptanalysis of Fridrich's chaotic image encryption scheme