avatar: added file size check