[experimental] attempt to avoid photo-taking crash

Experiments of MSameer, seems to work, but should not be deemed as final code!