function now accepts a param key called url to validate dimensions of an image src. updated demo files