Some fixes

https://github.com/imeji-community/imeji/issues/200
https://github.com/imeji-community/imeji/issues/249
https://github.com/imeji-community/imeji/issues/242
Merge branch 'develop' of https://github.com/imeji-community/imeji into develop