Writing An Image In Opencv Using Python For Front End