resizing image while uloading: creation of a web-optimisez version and a thumbnail version