Added "@property (nonatomic, assign) BOOL dismissAnimated" in UIPhotoGalleryViewController