implemented creating of thumbnails when new image is uploaded