save viewed pictures to NSUserDefaults
NSUserDefaults

fixed bugs