fixed restore instance state on picture taking