Added ajax uploading, fixed thumbs deletion