Get img element size from options
Merge pull request #3 from jb55/patch-1

Get img element size from options