#241: server sider validations for image formats added.
#241: client side file type validation added only for HTML5 as IE does not support it.