Can you show us full code where you are trying to draw on image and display it after drawing ?