Fixed a small bug with decrypting square images