Fixed debugging the skeleton

Fixed the bug connected with viewing proper height and width of the
skeleton that will be used for debugging the app, refactored the code