jpeg images are sometimes distorted