photo adding for ad module improved. added mime filter. fixed bug with file upload foreach