fixed photo issue with iOS devices