rewrote the Image Previer and changed its design