try drawPixmap within an rect