1. Take the image processing out of paintControl(PaintEvent e) to
prevent from repeatedly processing
2. Fix bug for ImageConverter