first working version of file uploads with single ajax call to check processing status of images