Separate the resize() interface from implementation of
painter.cpp