Resizing the uploaded images