fixed issue with photos