Dimension constraints with resize

- Also changed fetchnexturls a bit to better deal with internet troubles