Vision Transformer-Assisted Analysis Of Neural Image Compression And Generation