var ajaxPicture = function(){
var picture = new FormData();
picture.append('picture', $('input[name=picture]').prop('files')[0]);
$.ajax({
url: 'functions.php',
type: 'POST',
dataType: 'html',
processData: false,
data: picture
})
.done(function(data) {
alert(data);
console.log("img done");
});
}