fixed some bugs with photos on iphone