A new algorithm of image compression and encryption based on spatiotemporal cross chaotic system