fix img workaround code
Merge pull request #33 from dotkrnl/img-js

fix img workaround code