test image file upload and resize file