Exception when too small image is tried to encrypt message