Shrunk canvas to fit display area and debuggedd as per http://stackoverflow.com/a/23335628/1695680