Text this: Cryptanalysis and design of chaos based image encryption schemes