Adding robustness(check on width and height to avoid bugs)