save image size;working on slideshow function