The posted image might not be recognized properly, as it seems to have some background noise.
You could try to binarize your input image (or at least try to remove the background noise using a threshold).
Also, you could first try to classify “fake” written images created in paint or any other editor.
This would make sure to have a perfect image without any artifacts. If that’s working, you might need to add some preprocessing to your cellphone pictures.