Updated parameters. Did away with the size array, instead opted to use w and h. This way you have the ability to set either h or w, or both. Also, parameters can be passed as url string