Fix for getWidth() / getHeight() when rotated