fix a bug of photo's storage path, and add comments on class