Improved file creation and image/video saving

- Contstants for the category folder names
- Cleaned up error handling while saving images/videos
- Improved file creation
Refactoring