some fix work with photos