Add resized images caching to `getProfileImage`

Also stop serving the original images when we need resized images
(loaners, comments,).
Make sure subdirectories are created