How is width stored in JPEG beyond the number of DCT blocks? I think you could crop by changing that.