fixed broken image picking after taking a photo