5th attempt with camera function