[NTG-context] Rotating jpeg image gives weird output