allowed option maxSize to be null
pass max file size as argument to onSizeError callback
added validation of name option