Wrap extraction of width and height in try catch (NumberFormatException), common issue apparently