Clean up preview images on upload errors (bug 1051854)