Bug fixed

Fixed the bug where previous photo shows up when loaded.