redmine_local_avatars fork from https://bugs.launchpad.net/redminelocalavatars/+bug/1010406