fix the photo unshown problem