Moved check _width & _height to another method