reference:<http://www.cnblogs.com/zhujiangbk/p/4348325.html> and <https://stackoverflow.com/questions/7010611/how-can-i-crop-an-image-in-qt>