improve avatar upload feature with fileinput.js