Resizing image before storing .