upload foto and create thumb