Get img element size from options

Small bug fix. Since we're not passing in size anymore we should be pulling it from the options in `img`.