Fix for bug that resulted in the process crashing when a picture is received
Fix for bug that resulted in the process crashing when a picture is received